package com.alander.nexusgo.post.model.entity;

import com.alander.nexusgo.framework.mysql.starter.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 点赞表
 * @TableName post_likes
 */
@TableName(value ="post_likes")
@Data
public class PostLikes extends BaseEntity {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 目标ID(帖子ID或评论ID)
     */
    private Long targetId;

    /**
     * 目标类型:1-帖子,2-评论
     */
    private Integer targetType;

    /**
     * 点赞用户ID
     */
    private Long userId;
}